package com.example.xmltohtml.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "xmltohtml")
public class AppConfig {
    
    private Xslt xslt = new Xslt();
    private Security security = new Security();

    @Data
    public static class Xslt {
        private String defaultTemplate = "xslt/fund_profile.xslt";
        private boolean cacheEnabled = true;
        private int cacheSize = 100;
    }

    @Data
    public static class Security {
        private String allowedOrigins = "*";
        private String allowedMethods = "GET,POST,PUT,DELETE,OPTIONS";
        private String allowedHeaders = "*";
        private long maxAge = 3600;
    }
} 